package twentyThreePattern.create5.simple_factory.section4;
public class HumanFactory  {

	public static <T extends Human> T createHuman(Class<T> clazz) {
		Human human = null;
		try {
			human = clazz.newInstance();
		} catch (Exception e) {
			System.out.println("人种生成错误！");
		}
		
		return (T) human;
	}

}
